package com.xiaohong.canal;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @author xiaohong
 * @Description
 * @date 2020/10/25 0025 13:09
 */
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)  //排除掉数据库自动加载，因为这里不需要使用数据库
@EnableEurekaClient
//@EnableCanalClient
// 开启Feign
@EnableFeignClients(basePackages = {"com.xiaohong.goods.feign","com.xiaohong.search.feign"})
public class CanalApplication {
    public static void main(String[] args) {
        SpringApplication.run(CanalApplication.class,args);
    }
}
